package zl.ordermanager.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Tpurchaseinvoice entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tpurchaseinvoice", catalog = "ordermanager")
public class Tpurchaseinvoice implements java.io.Serializable {

	// Fields

	private Integer id;

	private String abstractMonth;

	private String ai;

	private String amount;

	private String company;

	private String invoiceDate;

	private String invoiceNo;

	private String invoiceType;

	private String orderAmount;

	private String orderNo;

	private String orderType;

	private String takeDate;

	// Constructors

	/** default constructor */
	public Tpurchaseinvoice() {
	}

	/** minimal constructor */
	public Tpurchaseinvoice(String company) {
		this.company = company;
	}

	/** full constructor */
	public Tpurchaseinvoice(String abstractMonth, String ai, String amount, String company, String invoiceDate,
			String invoiceNo, String invoiceType, String orderAmount, String orderNo, String orderType, String takeDate) {
		this.abstractMonth = abstractMonth;
		this.ai = ai;
		this.amount = amount;
		this.company = company;
		this.invoiceDate = invoiceDate;
		this.invoiceNo = invoiceNo;
		this.invoiceType = invoiceType;
		this.orderAmount = orderAmount;
		this.orderNo = orderNo;
		this.orderType = orderType;
		this.takeDate = takeDate;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "abstractMonth", length = 45)
	public String getAbstractMonth() {
		return this.abstractMonth;
	}

	public void setAbstractMonth(String abstractMonth) {
		this.abstractMonth = abstractMonth;
	}

	@Column(name = "ai", length = 45)
	public String getAi() {
		return this.ai;
	}

	public void setAi(String ai) {
		this.ai = ai;
	}

	@Column(name = "amount", length = 45)
	public String getAmount() {
		return this.amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	@Column(name = "company", nullable = false, length = 200)
	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Column(name = "invoiceDate", length = 24)
	public String getInvoiceDate() {
		return this.invoiceDate;
	}

	public void setInvoiceDate(String invoiceDate) {
		this.invoiceDate = invoiceDate;
	}

	@Column(name = "invoiceNo", length = 100)
	public String getInvoiceNo() {
		return this.invoiceNo;
	}

	public void setInvoiceNo(String invoiceNo) {
		this.invoiceNo = invoiceNo;
	}

	@Column(name = "invoiceType", length = 45)
	public String getInvoiceType() {
		return this.invoiceType;
	}

	public void setInvoiceType(String invoiceType) {
		this.invoiceType = invoiceType;
	}

	@Column(name = "orderAmount", length = 45)
	public String getOrderAmount() {
		return this.orderAmount;
	}

	public void setOrderAmount(String orderAmount) {
		this.orderAmount = orderAmount;
	}

	@Column(name = "orderNo", length = 10000)
	public String getOrderNo() {
		return this.orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	@Column(name = "orderType", length = 45)
	public String getOrderType() {
		return this.orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	@Column(name = "takeDate", length = 24)
	public String getTakeDate() {
		return this.takeDate;
	}

	public void setTakeDate(String takeDate) {
		this.takeDate = takeDate;
	}

}